package com.bootdo.order.service.impl;

import com.bootdo.common.utils.Query;
import com.bootdo.order.dao.OrderDao;
import com.bootdo.order.domain.OrderDo;
import com.bootdo.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public List<OrderDo> list(Map<String, Object> params) {
        return orderDao.list(params);
    }

    @Override
    public int count(Map<String, Object> params) {
        return orderDao.count(params);
    }

    @Override
    public int save(OrderDo orderDo) {
        return orderDao.save(orderDo);
    }

    @Override
    public void getAllOrderList() {
        orderDao.getAllOrderList();
    }
}
